﻿using System;
using System.Collections.Generic;
using System.Configuration;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using MediaAutomatorLib.MediaFinder;

namespace MediaAutomatorConsole.Configuration
{
    public class RecognizerElement : ConfigurationElement
    {
        [ConfigurationProperty("mediaType", IsRequired = true)]
        public MediaType MediaType
        {
            get
            {
                return this["mediaType"] is MediaType ? (MediaType) this["mediaType"] : MediaType.Movie;
            }
        }

        [ConfigurationProperty("regex")]
        public string Regex
        {
            get
            {
                return this["regex"] as string;
            }
        }
    }
}
